//
//  DetailViewController.m
//  29-TransitionHomework
//
//  Created by 曹曹 on 16/8/23.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "DetailViewController.h"
#import "DetailTableViewCell.h"
#import "ViewController.h"

@interface DetailViewController () <UITableViewDelegate, UITableViewDataSource>

@end

@implementation DetailViewController

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    _labelLast.priority = 751;
    _labelFirst.priority = 750;
    [UIView animateWithDuration:0.5 animations:^{
        [self.view layoutIfNeeded];
    }];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 20;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    DetailTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"detailreuse"];
    return cell;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    _detailImageView.image = [UIImage imageNamed:_imageName];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
